<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>

<VBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="500.0" prefWidth="330.0" stylesheets="main.css" xmlns="http://javafx.com/javafx/17.0.2-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ru.comavp.controller.MainController">
   <children>
      <AnchorPane prefHeight="135.0" prefWidth="330.0">
         <children>
            <Label fx:id="expression" alignment="CENTER_RIGHT" contentDisplay="BOTTOM" prefHeight="130.0" prefWidth="330.0" text="" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
         </children>
      </AnchorPane>
      <GridPane prefHeight="365.0" prefWidth="330.0">
        <columnConstraints>
            <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
            <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
            <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
            <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
        </columnConstraints>
        <rowConstraints>
            <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
            <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
            <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
            <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
            <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
            <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
        </rowConstraints>
         <children>
            <Button mnemonicParsing="false" onAction="#getResult" prefHeight="60.0" prefWidth="80.0" styleClass="equals" text="=" GridPane.columnIndex="3" GridPane.rowIndex="5" />
            <Button mnemonicParsing="false" onAction="#addSymbol" prefHeight="60.0" prefWidth="80.0" styleClass="non-operation" text="." GridPane.columnIndex="2" GridPane.rowIndex="5" />
            <Button mnemonicParsing="false" onAction="#addDigit" prefHeight="60.0" prefWidth="80.0" styleClass="non-operation" text="1" GridPane.rowIndex="3" />
            <Button mnemonicParsing="false" onAction="#addDigit" prefHeight="60.0" prefWidth="80.0" styleClass="non-operation" text="2" GridPane.columnIndex="1" GridPane.rowIndex="3" />
            <Button mnemonicParsing="false" onAction="#addDigit" prefHeight="60.0" prefWidth="80.0" styleClass="non-operation" text="3" GridPane.columnIndex="2" GridPane.rowIndex="3" />
            <Button mnemonicParsing="false" onAction="#addDigit" prefHeight="60.0" prefWidth="80.0" styleClass="non-operation" text="4" GridPane.rowIndex="2" />
            <Button mnemonicParsing="false" onAction="#addDigit" prefHeight="60.0" prefWidth="80.0" styleClass="non-operation" text="5" GridPane.columnIndex="1" GridPane.rowIndex="2" />
            <Button mnemonicParsing="false" onAction="#addDigit" prefHeight="60.0" prefWidth="80.0" styleClass="non-operation" text="6" GridPane.columnIndex="2" GridPane.rowIndex="2" />
            <Button mnemonicParsing="false" onAction="#addDigit" prefHeight="60.0" prefWidth="80.0" styleClass="non-operation" text="7" GridPane.rowIndex="1" />
            <Button mnemonicParsing="false" onAction="#addDigit" prefHeight="60.0" prefWidth="80.0" styleClass="non-operation" text="8" GridPane.columnIndex="1" GridPane.rowIndex="1" />
            <Button mnemonicParsing="false" onAction="#addDigit" prefHeight="60.0" prefWidth="80.0" styleClass="non-operation" text="9" GridPane.columnIndex="2" GridPane.rowIndex="1" />
            <Button mnemonicParsing="false" onAction="#addDigit" prefHeight="60.0" prefWidth="80.0" styleClass="non-operation" text="0" GridPane.columnIndex="1" GridPane.rowIndex="4" />
            <Button mnemonicParsing="false" onAction="#addSymbol" prefHeight="60.0" prefWidth="80.0" styleClass="non-operation" text="(" GridPane.rowIndex="4" />
            <Button mnemonicParsing="false" onAction="#addSymbol" prefHeight="60.0" prefWidth="80.0" styleClass="non-operation" text=")" GridPane.columnIndex="2" GridPane.rowIndex="4" />
            <Button mnemonicParsing="false" onAction="#addArithmeticOperation" prefHeight="60.0" prefWidth="80.0" styleClass="operation" text="+" GridPane.columnIndex="3" GridPane.rowIndex="3" />
            <Button mnemonicParsing="false" onAction="#addArithmeticOperation" prefHeight="60.0" prefWidth="80.0" styleClass="operation" text="-" GridPane.columnIndex="3" GridPane.rowIndex="4" />
            <Button mnemonicParsing="false" onAction="#addArithmeticOperation" prefHeight="60.0" prefWidth="80.0" styleClass="operation" text="/" GridPane.columnIndex="3" GridPane.rowIndex="2" />
            <Button mnemonicParsing="false" onAction="#addArithmeticOperation" prefHeight="60.0" prefWidth="80.0" styleClass="operation" text="*" GridPane.columnIndex="3" GridPane.rowIndex="1" />
            <Button mnemonicParsing="false" onAction="#removeSymbols" prefHeight="60.0" prefWidth="80.0" styleClass="operation" text="C" GridPane.columnIndex="2" />
            <Button mnemonicParsing="false" onAction="#removeSymbols" prefHeight="60.0" prefWidth="80.0" styleClass="operation" text="&lt;-" GridPane.columnIndex="3" />
         </children>
      </GridPane>
   </children>
</VBox>
